import http from "@/utils/http"

const baseUrl = "/active_table"

export interface tableDto {
    id: string,
    activeId: string,
    tableName:string,
    updateBy: string,
    status: number
}

/**
 * 获取表id
 * @param id 活动id
 */
export function getTableIdByActiveId(id :string) {
    return http.get(`${baseUrl}/active/${id}`)
}


/**
 * 新增活动表
 * @param data 活动表dto
 */
export function addActiveTable(data: tableDto) {
    return http.post(`${baseUrl}`, data)
}